package org.jackson.aware;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.hibernate4.Hibernate4Module;
import com.fasterxml.jackson.datatype.joda.JodaModule;

/**
 * Axcess Financial - Peru 2013.
 * @author : jastonitas
 * @date : 03/12/2013
 * TODO(jastonitas): Insert description
 */
public class HibernateAwareObjectMapper extends ObjectMapper {

  private static final long serialVersionUID = 1L;

  /**Constructor*/
  public HibernateAwareObjectMapper() {
      registerModule(new Hibernate4Module());
      registerModule(new JodaModule());
      configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
  }
  
}